//
//  HotTuPianCollectionViewCell.m
//  CarWorld
//
//  Created by yuyu on 15/3/30.
//  Copyright (c) 2015年 CarWorldTeam. All rights reserved.
//

#import "HotTuPianCollectionViewCell.h"

@implementation HotTuPianCollectionViewCell
- (void)dealloc
{
    [_imageView release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame]) {
        
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height-30)];
        [self.contentView addSubview:_imageView];
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, frame.size.height-30, frame.size.width, 30)];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        //_titleLabel.highlightedTextColor = [UIColor blueColor];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

@end
